#!/usr/bin/env node

const fs  = require('fs'),
      fileName = process.argv[2],
      log = console.log;
let arr;
fs.readFile(fileName,(err,data)=>{
  log(data);
  arr = data.toString('utf8').split('\n');
  for(let i = 0;i<arr.length;i++){
    log(i + ' '+ arr[i]);
  }
});

